package Part1_泛型的使用;

/**
 * ClassName: Employee
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.04.17 16:43
 */
public class Employee extends Person{
    String name;
    BirthDay birth;

    public Employee(String name, BirthDay birth) {
        this.name = name;
        this.birth = birth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BirthDay getBirth() {
        return birth;
    }

    public void setBirth(BirthDay birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", birth=[" + birth +
                "]}";
    }


}
